  <?php use_helper('I18N', 'Date') ?>
  
  <?php include_partial('fit/flashes') ?>

  <div id="sf_admin_header">
    <?php include_partial('fit/list_header', array('pager' => $pager)) ?>
  </div>

  <h1><?php echo __('Fit List', array(), 'messages') ?></h1>
  <div id="sf_admin_content">
    <form action="<?php echo url_for('ml_fit_collection', array('action' => 'batch')) ?>" method="post">
    <?php include_partial('fit/list', array('pager' => $pager, 'fit' => $fit, 'sort' => $sort, 'helper' => $helper)) ?>
    <ul class="sf_admin_actions">
      <?php include_partial('fit/list_batch_actions', array('helper' => $helper)) ?>
      <?php include_partial('fit/list_actions', array('helper' => $helper)) ?>
    </ul>
    </form>
  </div>

  <div id="sf_admin_footer">
    <?php include_partial('fit/list_footer', array('pager' => $pager)) ?>
  </div>
  
  <script type="text/javascript">
  $(document).ready(function(){
  	$('div.sf_admin_list > table > thead > tr > th > a').click(function(event){	
  		event.preventDefault();
		  var retour = jQuery.ajax({
		    type: "GET",
		    url: $(this).attr('href') + '&numero=<?php echo $sf_params->get('numero'); ?>',
		    async: false
		  }).responseText;
		jQuery("#sf_admin_container").html(retour);
		etiquettes();  	
  	});
  });
  </script>